<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont back-icon">&#xe624;</div>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe8ba;</span>
      <input type="text" placeholder="输入城市/景点/游玩主题" />
    </div>
    <router-link to="/city" tag="div" class="header-right">
      {{ this.city }}
      <span class="iconfont arrow-icon">&#xe62e;</span>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "headers",
  components: {},
  props: ["city"],
  data() {
    return {};
  },
  mounted() {},
  methods: {},
  computed: {},
  watch: {},
  created() {},
};
</script>

<style lang='stylus' scoped>
.header
  width: 100%;
  height: 0.7rem;
  background: #00bcd4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0.1 0.1;
  position: fixed;
  z-index: 3;
  font-weight: bold;

  .header-input 
    width: 5rem;
    height: 0.5 0.5rem;
    line-height: 0.5rem;
    padding-left: 0.1rem;
    background: #fff;
    border-radius: 0.1rem;
    color: #ccc;
  

</style>
